package com.zzq.controller;

import com.zzq.domain.search.PointRecordSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientPointService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/client/point")
@RestController
@Api(value = "客户积分接口管理",tags = {"客户积分接口管理"})
public class ClientPointController {

    @Autowired
    ClientPointService clientPointService;
    @ApiOperation("客户积分记录")
    @PostMapping("/Record/list")
    public SmileResult getClientPointRecord(@RequestBody  PointRecordSearchParamet searchParamet) {
        return clientPointService.getPointRecordDTOList(searchParamet);
    }
}
